package com.trkj.dao.jpa;

import java.math.BigDecimal;
import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.trkj.pojos.CcDeductdetail;

public interface CcDeductdetailDAO extends CrudRepository<CcDeductdetail, Long> {

	@Query("select c from CcDeductdetail c  where c.ddeductid=?1 order by c.dddate")
	public List<CcDeductdetail> findByDeductid(Pageable pageable,BigDecimal ddeductid);
	@Query("select count(*) from CcDeductdetail c  where c.ddeductid=?1")
	public long findByDeductidCount(BigDecimal ddeductid);
	
}
